package org.toycode.logindemo.service;

import java.util.List;
import java.util.Map;
import javax.ejb.Remote;
import org.dom4j.tree.AbstractEntity;

/**
 * This class provides the solr relevant <em>remote</em> services.
 *
 * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
 * @version 1.0.0.1, Aug 27, 2009
 */
@Remote
public interface SolrServiceRemote {

    void index(final AbstractEntity entity);

    List<String> search(final String query);

    List<String> search(final String entity, final String prop, final String key);

    Map<String, String> getEntityMap();

    /**
     *
     * @param entityName entity diaplay name
     * @return
     */
    Map<String, String> getPropsByEntityName(final String entityName);
}
